package com.cc.mapper;

import com.cc.entity.EbNews;
import com.cc.entity.EbOrder;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface NewsMapper {
    /*
    *作用:分页查询新闻表
    * 参数page：页数
    * 参数pageSize:每页条数
    * 导包：alt+Enter
    * */
   List<EbNews> findByPage(@Param("from") Integer from, @Param("pageSize") Integer pageSize);
   public int delete(Integer enId);
   public int updateByPrimaryKey(EbNews ebNews);
    public int save (EbNews ebNews);
}
